<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div class="yi"><h2>搜索</h2></div>

        <div class="serch">
            <input type="text" placeholder="输入商家，商品名称" v-model = "searchText">
            <span @click="bangdin">搜索</span>
        </div>
        <div class="lishi">
            <h3 class="biaoti"> {{item}} </h3>
        </div>
        <div class="list">
            <h3>历史搜索</h3>
            <span v-for="(item,index) in arr"> {{item}} </span>
        </div>
        <div class="list">
            <h3>最近搜索</h3>
            <span v-for="(item,index) in str"> {{item}} </span>
        </div>
    </div>




    <script src="./vue-2.5.21.js"></script>
    <script src="./3.搜索.js"></script>
</body>
</html>